﻿using NHibernate.Mapping.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceZero.DataStore.Models
{
    [Class(Table = "IceZero_AppUpdateHistory")]
    public class AppUpdateHistory
    {
        /// <summary>
        /// 版本号
        /// </summary>
        [Id(0, Name = "AppVersion", TypeType = typeof(string), UnsavedValue = "0", Length = 255)]
        [Key(1, Unique = true)]
        [Generator(2, Class = "assigned")]
        public virtual string AppVersion { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Property(Column = "UpdateTime", TypeType = typeof(DateTime))]
        public virtual DateTime UpdateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Property(Column = "Remark", TypeType = typeof(string), Length = 2000)]
        public virtual string Remark { get; set; }
    }
}
